package com.g001.model;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.geom.Vector2f;
import org.newdawn.slick.state.StateBasedGame;

public class Mountains extends Entity {
	
	private Image[] images ;
	private final static int WIDTH = 512;
	private final static int HEIGHT = 128;
	
	public Mountains(final String name, final String path, final Vector2f position) throws SlickException{
		super(name, path, position);
		images = new Image[2];
		images[0] = image.getSubImage(0, HEIGHT+1, WIDTH, HEIGHT).getScaledCopy(2);
		images[1] = image.getSubImage(0, 1, WIDTH, HEIGHT).getScaledCopy(2);
	}

	@Override
	public void render(GameContainer container, StateBasedGame game, Graphics g)
			throws SlickException {
//		g.drawImage(images[1], position.x, position.y);
		g.drawImage(images[0], position.x-50, position.y);
		
	}

	@Override
	public void update(GameContainer container, StateBasedGame game, int delta)
			throws SlickException {
		// TODO Auto-generated method stub
		
	}


}
